x86/EFI: avoid IOMMU faults on [_end,__2M_rwdata_end)
authorJan Beulich <jbeulich@suse.com>
Mon, 20 Mar 2017 08:25:36 +0000 (09:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 20 Mar 2017 08:25:36 +0000 (09:25 +0100)
commitd522571a408a7dd21a06705f6dd51cdafd2db4fc
treeb7264892478c427205ada88df5410f398dafd296
parent02b37b7eff39e40828041b2fe480725ab8443258
x86/EFI: avoid IOMMU faults on [_end,__2M_rwdata_end)

Commit c9a4a1c419 ("x86/layout: Correct Xen's idea of its own memory
layout") didn't go far enough with the conversion, causing IOMMU faults
when memory from that range was handed to a domain. We must not make
this memory available for allocation (the change is benign to xen.gz at
this point in time).

Note that the change to tboot_shutdown() is fixing another issue at
once: As it looks, the function so far skipped all memory below the Xen
image.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/setup.c
xen/arch/x86/tboot.c
xen/arch/x86/xen.lds.S
xen/include/asm-x86/mm.h